<?php
/**
 * 产品评论后台管理栏目首页文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	comments
 */
if (is_object($objWebInit)) {
	if(!isset($objcomments)){
		include_once(__WEB_ROOT."/comments/class/comments.class.php");
		include_once(__WEB_ROOT."/comments/config/var.inc.php");
		$objcomments = new comments();
		$objcomments->setDBG($arrGPdoDB);
		if(is_object($objWebInit->db)) $objcomments->db = $objWebInit->db;
		else $objcomments->db();
	}

	$intcommentsID = intval($_GET['id']);
	$arrcommentsTop = array();
	$arrcommentsTop = $objcomments->getInfoList("where state = 1 and pass = 1 and pid=$intcommentsID",' order by submit_date desc',0,5,'*',null,false);
	
	//print_r($arrcommentsTop);

	// 输出到模板
	$arrMOutput["smarty_assign"]['arrcommentsTop'] = $arrcommentsTop;
}
?>